{if(!$data)}
<script id="editor" name="body" type="text/plain" style="width:100%;height:400px;"></script>
{else}
<script id="editor" name="body" type="text/plain" style="width:100%;height:400px;">{$data['body']}</script>
{/if}